// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/utils/element.js'

// 路由
import router from './router/index'
import '@/assets/css/public.css'
// vuex
import store from '../src/store'
import * as filters from './filters/index' // global filters

// import SearchForm from '@/components/SearchForm/SearchForm'
import FrForm from '@/components/FrForm'
import compTable from '@/components/compTable'
// register global utility filters
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
// Vue.use(SearchForm)
Vue.use(ElementUI)
Vue.use(FrForm)
Vue.use(compTable)
// 阻止启动生产消息
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
